package com.mao.other;

import java.util.LinkedList;

/**
 * @author Totoro
 * @date 2020/8/13
 * @explain:
 */
public class Main {

    public static void main(String[] args) {
       long a = 888;
       int count = 0;
       while (a != 0){
           if ( (a & 7) == 7 ){
               count++;
           }
           a = a>>>3;
       }
        System.out.println(count);
        LinkedList<Integer> integers = new LinkedList<>();
    }
}
